<?php

use think\swoole\websocket\Room;

return function (Room $room) {
    $room->on('open', 'Chat/onOpen');
    $room->on('message', 'Chat/onMessage');
    $room->on('close', 'Chat/onClose');
};